package com.fruits.service;

import com.fruits.domain.Cart;
import com.fruits.domain.Fruit;

import java.util.List;

public interface CartService {
    public boolean add(int uid, Cart cart);
    public Cart find(int uid, int fid);
    public boolean update(int uid, Cart cart);
    public List<Cart> findById(int uid);
  //根据flag是购物车列表还是关注列表
    public List<Fruit> show(int uid,boolean flag);
    public boolean delete(int uid, int fid);

}
